import java.util.ArrayList;
import java.util.Scanner;

public class Java004 {
    public static void main(String[] args){
        int num,numcopy,flag=0;
        ArrayList arr = new ArrayList();
        Scanner sc = new Scanner(System.in);
        num=sc.nextInt();
        numcopy=num;
        while(flag==0){
            if(num==decompose(num)){
                //分解完成
                flag = 1;
                arr.add(decompose(num));//存储最后一个质因数
//              System.out.println(arr);//输出
                put(arr,numcopy);

            }
            else {
                arr.add(decompose(num));
                num = num/decompose(num);
            }
        }
    }
    public static int decompose(int num){
        int i;
        for(i = 2;i<=Math.sqrt(num);i++){
            if(num%i==0){
                return i;
            }
        }
        return num;
    }
    public static void put(ArrayList<Integer> arr,int num){
        System.out.print(num+"=");
        for(int i=0;i<arr.size();i++){
            if(i==arr.size()-1){
                System.out.print(arr.get(i));
            }else{System.out.print(arr.get(i)+"*");}
        }
    }
}  //返回质因数
